/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc;

/**
 * <p>Project: MybatisPro - SqlSessionFactoryUtils</p>
 * <p>Powered by yzc On 2023-10-08 20:02:53</p>
 * <p>描述：单列模式 饿汉式<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
public class SqlSessionFactoryUtils2 {

    /**
     * 声明本类的实例
     */
    private  static  SqlSessionFactoryUtils2 instance  = null;

    /**
     * 静态代码块
     */
    static {
        instance = new SqlSessionFactoryUtils2();
    }
    /**
     * 构造方法私有化
     */
  private  SqlSessionFactoryUtils2(){}


    /**
     * 提供静态方法，返回本类的实例
     */
    public  static SqlSessionFactoryUtils2  getInstance(){
        return instance;
    }
}
